<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.6.1" />

	<title>Class DibiConnection | Dibi 2.0.2 API documentation</title>

	<script type="text/javascript" src="resources/combined.js?3201557540"></script>
	<script type="text/javascript" src="elementlist.js?236042691"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1321461267" />
	<link rel="search" type="application/opensearchdescription+xml" title="Dibi 2.0.2 API documentation" href="http://api.dibiphp.com/2.0/opensearch.xml" />

</head>

<body>
<div id="left">
	<div id="menu">

		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li class="active"><a href="package-dibi.html">dibi<span></span></a>
						<ul>
				<li><a href="package-dibi.drivers.html">drivers</a>
						</li>
				<li><a href="package-dibi.nette.html">nette</a>
						</li>
				<li><a href="package-dibi.reflection.html">reflection</a>
						</li>
							</ul></li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="dibi.html">dibi</a></li>
				<li class="active"><a href="DibiConnection.html">DibiConnection</a></li>
				<li><a href="DibiDataSource.html">DibiDataSource</a></li>
				<li><a href="DibiDateTime.html">DibiDateTime</a></li>
				<li><a href="DibiEvent.html">DibiEvent</a></li>
				<li><a href="DibiFileLogger.html">DibiFileLogger</a></li>
				<li><a href="DibiFirePhpLogger.html">DibiFirePhpLogger</a></li>
				<li><a href="DibiFluent.html">DibiFluent</a></li>
				<li><a href="DibiObject.html">DibiObject</a></li>
				<li><a href="DibiResult.html">DibiResult</a></li>
				<li><a href="DibiResultIterator.html">DibiResultIterator</a></li>
				<li><a href="DibiRow.html">DibiRow</a></li>
				<li><a href="DibiTranslator.html">DibiTranslator</a></li>
			</ul>

			<h3>Interfaces</h3>
			<ul>
				<li><a href="IDataSource.html">IDataSource</a></li>
				<li><a href="IDibiDriver.html">IDibiDriver</a></li>
				<li><a href="IDibiReflector.html">IDibiReflector</a></li>
				<li><a href="IDibiResultDriver.html">IDibiResultDriver</a></li>
			</ul>


			<h3>Exceptions</h3>
			<ul>
				<li><a href="DibiDriverException.html">DibiDriverException</a></li>
				<li><a href="DibiException.html">DibiException</a></li>
				<li><a href="DibiNotImplementedException.html">DibiNotImplementedException</a></li>
				<li><a href="DibiNotSupportedException.html">DibiNotSupportedException</a></li>
				<li><a href="DibiPcreException.html">DibiPcreException</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form action="http://www.google.com/cse" id="search">
		<input type="hidden" name="cx" value="011549293477758430224:x_apk4yrmjm" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="hidden" name="more" value="api" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-dibi.html" title="Summary of dibi"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class DibiConnection</h1>


	<div class="description">
	
<p>dibi connection.</p>

	</div>

	<dl class="tree">
		<dd style="padding-left:0px">
			<a href="DibiObject.html"><span>DibiObject</span></a>
			
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by" />
<b><span>DibiConnection</span></b>			
			
			
		</dd>
	</dl>








	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-dibi.html">dibi</a><br />

				<b>Author:</b>
				David Grudl<br />
		<b>Located at</b> <a href="source-libs.DibiConnection.php.html#14" title="Go to source code">libs/DibiConnection.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-libs.DibiConnection.php.html#49" title="Go to source code">__construct</a>( <span>mixed <var>$config</var></span>, <span>string <var>$name</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Connection options: (see driver-specific options too)<br />
- lazy (bool) =&gt; if TRUE, connection will be established only when
required<br />
- result (array) =&gt; result set options<br />
- formatDateTime =&gt; date-time format (if empty, DateTime objects will be
returned)<br />
- profiler (array or bool)<br />
- run (bool) =&gt; enable profiler?<br />
- file =&gt; file to log<br />
- substitutes (array) =&gt; map of driver specific substitutes (under
development)</p>

		</div>

		<div class="description detailed hidden">
			
<p>Connection options: (see driver-specific options too) - lazy (bool) =&gt; if
TRUE, connection will be established only when required - result (array) =&gt;
result set options - formatDateTime =&gt; date-time format (if empty, DateTime
objects will be returned) - profiler (array or bool) - run (bool) =&gt; enable
profiler? - file =&gt; file to log - substitutes (array) =&gt; map of driver
specific substitutes (under development)</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$config</var></dt>
					<dd><code>mixed</code><br>connection parameters</dd>
					<dt><var>$name</var></dt>
					<dd><code>string</code><br>connection name</dd>
				</dl></div>


				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="__destruct" id="___destruct">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___destruct">#</a>
		<code><a href="source-libs.DibiConnection.php.html#143" title="Go to source code">__destruct</a>( )</code>

		<div class="description short">
			
<p>Automatically frees the resources allocated for this result set.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Automatically frees the resources allocated for this result set.</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="connect" id="_connect">

		<td class="attributes"><code>
			final public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_connect">#</a>
		<code><a href="source-libs.DibiConnection.php.html#155" title="Go to source code">connect</a>( )</code>

		<div class="description short">
			
<p>Connects to a database.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Connects to a database.</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="disconnect" id="_disconnect">

		<td class="attributes"><code>
			final public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_disconnect">#</a>
		<code><a href="source-libs.DibiConnection.php.html#175" title="Go to source code">disconnect</a>( )</code>

		<div class="description short">
			
<p>Disconnects from a database.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Disconnects from a database.</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="isConnected" id="_isConnected">

		<td class="attributes"><code>
			final public 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isConnected">#</a>
		<code><a href="source-libs.DibiConnection.php.html#187" title="Go to source code">isConnected</a>( )</code>

		<div class="description short">
			
<p>Returns TRUE when connection was established.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Returns TRUE when connection was established.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="getConfig" id="_getConfig">

		<td class="attributes"><code>
			final public 
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getConfig">#</a>
		<code><a href="source-libs.DibiConnection.php.html#198" title="Go to source code">getConfig</a>( <span>string <var>$key</var> = <span class="php-keyword1">NULL</span></span>, <span>mixed <var>$default</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Returns configuration variable. If no $key is passed, returns the entire
array.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Returns configuration variable. If no $key is passed, returns the entire
array.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd><code>string</code></dd>
					<dt><var>$default</var></dt>
					<dd><code>mixed</code><br>default value to use if key not found</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br />
				</div>


				<h4>See</h4>
				<div class="list">
						<code><code><a href="DibiConnection.html#___construct">DibiConnection::__construct()</a></code></code><br />
				</div>

		</div>
		</div></td>
	</tr>
	<tr data-order="alias" id="_alias">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_alias">#</a>
		<code><a href="source-libs.DibiConnection.php.html#220" title="Go to source code">alias</a>( <span>array <var>&amp; $config</var></span>, <span>string <var>$key</var></span>, <span>string <var>$alias</var></span> )</code>

		<div class="description short">
			
<p>Apply configuration alias or default values.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Apply configuration alias or default values.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$config</var></dt>
					<dd><code>array</code><br>connect configuration</dd>
					<dt><var>$key</var></dt>
					<dd><code>string</code><br>key</dd>
					<dt><var>$alias</var></dt>
					<dd><code>string</code><br>alias key</dd>
				</dl></div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getDriver" id="_getDriver">

		<td class="attributes"><code>
			final public 
			<code><a href="IDibiDriver.html">IDibiDriver</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getDriver">#</a>
		<code><a href="source-libs.DibiConnection.php.html#240" title="Go to source code">getDriver</a>( )</code>

		<div class="description short">
			
<p>Returns the driver and connects to a database in lazy mode.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Returns the driver and connects to a database in lazy mode.</p>




				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="IDibiDriver.html">IDibiDriver</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="query" id="_query">

		<td class="attributes"><code>
			final public 
			<code><a href="DibiResult.html">DibiResult</a></code>|integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_query">#</a>
		<code><a href="source-libs.DibiConnection.php.html#252" title="Go to source code">query</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Generates (translates) and executes SQL query.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Generates (translates) and executes SQL query.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiResult.html">DibiResult</a></code>|integer</code><br>result set object (if any)<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="translate" id="_translate">

		<td class="attributes"><code>
			final public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_translate">#</a>
		<code><a href="source-libs.DibiConnection.php.html#266" title="Go to source code">translate</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Generates SQL query.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Generates SQL query.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="test" id="_test">

		<td class="attributes"><code>
			final public 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_test">#</a>
		<code><a href="source-libs.DibiConnection.php.html#280" title="Go to source code">test</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Generates and prints SQL query.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Generates and prints SQL query.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="dataSource" id="_dataSource">

		<td class="attributes"><code>
			final public 
			<code><a href="DibiDataSource.html">DibiDataSource</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_dataSource">#</a>
		<code><a href="source-libs.DibiConnection.php.html#304" title="Go to source code">dataSource</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Generates (translates) and returns SQL query as DibiDataSource.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Generates (translates) and returns SQL query as DibiDataSource.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiDataSource.html">DibiDataSource</a></code></code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="nativeQuery" id="_nativeQuery">

		<td class="attributes"><code>
			final public 
			<code><a href="DibiResult.html">DibiResult</a></code>|integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_nativeQuery">#</a>
		<code><a href="source-libs.DibiConnection.php.html#331" title="Go to source code">nativeQuery</a>( <span>string <var>$sql</var></span> )</code>

		<div class="description short">
			
<p>Executes the SQL query.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes the SQL query.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$sql</var></dt>
					<dd><code>string</code><br>SQL statement.</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiResult.html">DibiResult</a></code>|integer</code><br>result set object (if any)<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getAffectedRows" id="_getAffectedRows">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getAffectedRows">#</a>
		<code><a href="source-libs.DibiConnection.php.html#362" title="Go to source code">getAffectedRows</a>( )</code>

		<div class="description short">
			
<p>Gets the number of affected rows by the last INSERT, UPDATE or DELETE
query.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Gets the number of affected rows by the last INSERT, UPDATE or DELETE
query.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br>number of rows<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="affectedRows" id="_affectedRows">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_affectedRows">#</a>
		<code><a href="source-libs.DibiConnection.php.html#377" title="Go to source code">affectedRows</a>( )</code>

		<div class="description short">
			
<p>Gets the number of affected rows. Alias for getAffectedRows().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Gets the number of affected rows. Alias for getAffectedRows().</p>




				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br>number of rows<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getInsertId" id="_getInsertId">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getInsertId">#</a>
		<code><a href="source-libs.DibiConnection.php.html#389" title="Go to source code">getInsertId</a>( <span>string <var>$sequence</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Retrieves the ID generated for an AUTO_INCREMENT column by the previous
INSERT query.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Retrieves the ID generated for an AUTO_INCREMENT column by the previous
INSERT query.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$sequence</var></dt>
					<dd><code>string</code><br>optional sequence name</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="insertId" id="_insertId">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_insertId">#</a>
		<code><a href="source-libs.DibiConnection.php.html#405" title="Go to source code">insertId</a>( <span>string <var>$sequence</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Retrieves the ID generated for an AUTO_INCREMENT column. Alias for
getInsertId().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Retrieves the ID generated for an AUTO_INCREMENT column. Alias for
getInsertId().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$sequence</var></dt>
					<dd><code>string</code><br>optional sequence name</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="begin" id="_begin">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_begin">#</a>
		<code><a href="source-libs.DibiConnection.php.html#418" title="Go to source code">begin</a>( <span>string <var>$savepoint</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Begins a transaction (if supported).</p>

		</div>

		<div class="description detailed hidden">
			
<p>Begins a transaction (if supported).</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$savepoint</var></dt>
					<dd><code>string</code><br>optional savepoint name</dd>
				</dl></div>




		</div>
		</div></td>
	</tr>
	<tr data-order="commit" id="_commit">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_commit">#</a>
		<code><a href="source-libs.DibiConnection.php.html#439" title="Go to source code">commit</a>( <span>string <var>$savepoint</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Commits statements in a transaction.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Commits statements in a transaction.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$savepoint</var></dt>
					<dd><code>string</code><br>optional savepoint name</dd>
				</dl></div>




		</div>
		</div></td>
	</tr>
	<tr data-order="rollback" id="_rollback">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_rollback">#</a>
		<code><a href="source-libs.DibiConnection.php.html#460" title="Go to source code">rollback</a>( <span>string <var>$savepoint</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Rollback changes in a transaction.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Rollback changes in a transaction.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$savepoint</var></dt>
					<dd><code>string</code><br>optional savepoint name</dd>
				</dl></div>




		</div>
		</div></td>
	</tr>
	<tr data-order="createResultSet" id="_createResultSet">

		<td class="attributes"><code>
			 public 
			<code><a href="DibiResult.html">DibiResult</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_createResultSet">#</a>
		<code><a href="source-libs.DibiConnection.php.html#481" title="Go to source code">createResultSet</a>( <span><code><a href="IDibiResultDriver.html">IDibiResultDriver</a></code> <var>$resultDriver</var></span> )</code>

		<div class="description short">
			
<p>Result set factory.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Result set factory.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$resultDriver</var></dt>
					<dd><code><code><a href="IDibiResultDriver.html">IDibiResultDriver</a></code></code></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiResult.html">DibiResult</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="command" id="_command">

		<td class="attributes"><code>
			 public 
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_command">#</a>
		<code><a href="source-libs.DibiConnection.php.html#499" title="Go to source code">command</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			



				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="select" id="_select">

		<td class="attributes"><code>
			 public 
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_select">#</a>
		<code><a href="source-libs.DibiConnection.php.html#509" title="Go to source code">select</a>( <span>string <var>$args</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>string</code><br>column name</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="update" id="_update">

		<td class="attributes"><code>
			 public 
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_update">#</a>
		<code><a href="source-libs.DibiConnection.php.html#521" title="Go to source code">update</a>( <span>string <var>$table</var></span>, <span>array <var>$args</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$table</var></dt>
					<dd><code>string</code><br>table</dd>
					<dt><var>$args</var></dt>
					<dd><code>array</code></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="insert" id="_insert">

		<td class="attributes"><code>
			 public 
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_insert">#</a>
		<code><a href="source-libs.DibiConnection.php.html#536" title="Go to source code">insert</a>( <span>string <var>$table</var></span>, <span>array <var>$args</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$table</var></dt>
					<dd><code>string</code><br>table</dd>
					<dt><var>$args</var></dt>
					<dd><code>array</code></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="delete" id="_delete">

		<td class="attributes"><code>
			 public 
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_delete">#</a>
		<code><a href="source-libs.DibiConnection.php.html#554" title="Go to source code">delete</a>( <span>string <var>$table</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$table</var></dt>
					<dd><code>string</code><br>table</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="getSubstitutes" id="_getSubstitutes">

		<td class="attributes"><code>
			 public 
			DibiHashMap
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getSubstitutes">#</a>
		<code><a href="source-libs.DibiConnection.php.html#569" title="Go to source code">getSubstitutes</a>( )</code>

		<div class="description short">
			
<p>Returns substitution hashmap.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Returns substitution hashmap.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>DibiHashMap</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="substitute" id="_substitute">

		<td class="attributes"><code>
			 public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_substitute">#</a>
		<code><a href="source-libs.DibiConnection.php.html#580" title="Go to source code">substitute</a>( <span> <var>$value</var></span> )</code>

		<div class="description short">
			
<p>Provides substitution.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Provides substitution.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="fetch" id="_fetch">

		<td class="attributes"><code>
			 public 
			<code><a href="DibiRow.html">DibiRow</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetch">#</a>
		<code><a href="source-libs.DibiConnection.php.html#605" title="Go to source code">fetch</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Executes SQL query and fetch result - shortcut for query() &amp; fetch().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes SQL query and fetch result - shortcut for query() &amp; fetch().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiRow.html">DibiRow</a></code></code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="fetchAll" id="_fetchAll">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetchAll">#</a>
		<code><a href="source-libs.DibiConnection.php.html#619" title="Go to source code">fetchAll</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Executes SQL query and fetch results - shortcut for query() &amp;
fetchAll().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes SQL query and fetch results - shortcut for query() &amp;
fetchAll().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>of DibiRow<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="fetchSingle" id="_fetchSingle">

		<td class="attributes"><code>
			 public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetchSingle">#</a>
		<code><a href="source-libs.DibiConnection.php.html#633" title="Go to source code">fetchSingle</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Executes SQL query and fetch first column - shortcut for query() &amp;
fetchSingle().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes SQL query and fetch first column - shortcut for query() &amp;
fetchSingle().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="fetchPairs" id="_fetchPairs">

		<td class="attributes"><code>
			 public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetchPairs">#</a>
		<code><a href="source-libs.DibiConnection.php.html#647" title="Go to source code">fetchPairs</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Executes SQL query and fetch pairs - shortcut for query() &amp;
fetchPairs().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes SQL query and fetch pairs - shortcut for query() &amp;
fetchPairs().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="loadFile" id="_loadFile">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_loadFile">#</a>
		<code><a href="source-libs.DibiConnection.php.html#665" title="Go to source code">loadFile</a>( <span>string <var>$file</var></span> )</code>

		<div class="description short">
			
<p>Import SQL dump from file - extreme fast!</p>

		</div>

		<div class="description detailed hidden">
			
<p>Import SQL dump from file - extreme fast!</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$file</var></dt>
					<dd><code>string</code><br>filename</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br>count of sql commands<br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="getDatabaseInfo" id="_getDatabaseInfo">

		<td class="attributes"><code>
			 public 
			<code><a href="DibiDatabaseInfo.html">DibiDatabaseInfo</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getDatabaseInfo">#</a>
		<code><a href="source-libs.DibiConnection.php.html#701" title="Go to source code">getDatabaseInfo</a>( )</code>

		<div class="description short">
			
<p>Gets a information about the current database.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Gets a information about the current database.</p>




				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiDatabaseInfo.html">DibiDatabaseInfo</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="__wakeup" id="___wakeup">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___wakeup">#</a>
		<code><a href="source-libs.DibiConnection.php.html#713" title="Go to source code">__wakeup</a>( )</code>

		<div class="description short">
			
<p>Prevents unserialization.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Prevents unserialization.</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="__sleep" id="___sleep">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___sleep">#</a>
		<code><a href="source-libs.DibiConnection.php.html#723" title="Go to source code">__sleep</a>( )</code>

		<div class="description short">
			
<p>Prevents serialization.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Prevents serialization.</p>







		</div>
		</div></td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Methods inherited from <a href="DibiObject.html#methods">DibiObject</a></caption>
	<tr>
		<td><code>
			<a href="DibiObject.html#___call">__call()</a>, 
			<a href="DibiObject.html#___callStatic">__callStatic()</a>, 
			<a href="DibiObject.html#___get">__get()</a>, 
			<a href="DibiObject.html#___isset">__isset()</a>, 
			<a href="DibiObject.html#___set">__set()</a>, 
			<a href="DibiObject.html#___unset">__unset()</a>, 
			<a href="DibiObject.html#_extensionMethod">extensionMethod()</a>, 
			<a href="DibiObject.html#_getClass">getClass()</a>, 
			<a href="DibiObject.html#_getReflection">getReflection()</a>
		</code></td>
	</tr>
	</table>






	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="onEvent" id="$onEvent">

		<td class="attributes"><code>
			public 
			array
		</code></td>

		<td class="name">
				<a href="source-libs.DibiConnection.php.html#29" title="Go to source code"><var>$onEvent</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$onEvent" class="anchor">#</a>

			<div class="description short">
				
<p>of function(DibiEvent $event); Occurs after query is executed</p>

			</div>

			<div class="description detailed hidden">
				
<p>of function(DibiEvent $event); Occurs after query is executed</p>


			</div>
		</div></td>
	</tr>
	</table>



</div>

	<div id="footer">
		Dibi 2.0.2 API documentation API documentation generated by <a href="http://apigen.org">ApiGen 2.6.1</a>
	</div>
</div>
</div>
</body>
</html>
